const mongoose = require("mongoose");
const Schema = mongoose.Schema;
const bcrypt = require("bcrypt");

//创建Schema
const UserSchema = new Schema({
  name:{
    type:String,
    required:true
  },
  email:{
    type:String,
    required:true
  },
  password:{
    type:String,
    required:true
  },
  avatar:{
    type:String
  },
  identity:{
    type:String,
    required:true
  },
  data:{
    type:Date,
    default:Date.now
  },
})




module.exports = User = mongoose.model("users",UserSchema);